package cn.com.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.com.mapper.MajorInfoMapper;
import cn.com.beans.MajorInfo;
import cn.com.service.MajorInfoService;

import java.util.List;

@Service
public class MajorInfoServiceImpl implements MajorInfoService {

    @Resource
    private MajorInfoMapper majorInfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer maId) {
        return majorInfoMapper.deleteByPrimaryKey(maId);
    }

    @Override
    public int insert(MajorInfo record) {
        return majorInfoMapper.insert(record);
    }

    @Override
    public int insertSelective(MajorInfo record) {
        return majorInfoMapper.insertSelective(record);
    }

    @Override
    public MajorInfo selectByPrimaryKey(Integer maId) {
        return majorInfoMapper.selectByPrimaryKey(maId);
    }

    @Override
    public int updateByPrimaryKeySelective(MajorInfo record) {
        return majorInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MajorInfo record) {
        return majorInfoMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<MajorInfo> findByCoid(Integer coId) {
        return majorInfoMapper.findByCoid(coId);
    }

    @Override
    public String findNameById(Integer maId) {
        return majorInfoMapper.findNameById(maId);
    }

    @Override
    public List<MajorInfo> findAll(MajorInfo majorInfo) {
        return majorInfoMapper.findAll(majorInfo);
    }

    @Override
    public List<MajorInfo> fuzzyQueryAll(MajorInfo majorInfo) {
        return majorInfoMapper.fuzzyQueryAll(majorInfo);
    }

}


